<template>
  <el-card class="box-card" shadow="never">
    <div slot="header" class="clearfix">
      <span class="fl"><slot name="title-icon"></slot> {{title}}</span>
      <slot name="title-right" class="fr"></slot>
    </div>
    <div>
      <slot name="body"></slot>
    </div>
  </el-card>
</template>

<script>
  export default {
    name: "cardVue",
    props: {
      title: {
        type: String,
        default: ""
      },
    },
    data() {
      return {}
    },
    methods: {}
  }
</script>

<style lang="less" scoped>
  .box-card{
    margin-bottom: 20px;
  }
</style>
